import Vue from 'vue'
import Vuex from 'vuex'
import { IAuthState } from './modules/auth'
import { IUserState } from './modules/user'
import { IAppState } from './modules/app'
import { IPermissionState } from './modules/permission'

Vue.use(Vuex)

export interface IRootState {
    auth: IAuthState
    user: IUserState
    app: IAppState
    permission: IPermissionState
}

export default new Vuex.Store<IRootState>({})
